package com.straw.hat.dubbo.provider.provider;

import com.straw.hat.api.IUserInfo;
import com.straw.hat.api.modle.UserInfo;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @company: 鲸灵科技
 * @author: qiyue@webuy.ai
 * @date: 2019/10/3
 * @time: 12:55 下午
 */
@Service(interfaceClass = IUserInfo.class,version = "1.0.0",group = "hangzhou")
@Component
public class UserInfoImpl implements IUserInfo {
    @Override
    public UserInfo findCUser() {
        UserInfo userInfo = new UserInfo();
        userInfo.setName("杨彬彬");
        userInfo.setAge(26);
        return userInfo;
    }
}
